package com.bwie.system.controller;

import com.bwie.common.domain.User;
import com.bwie.common.result.Result;
import com.bwie.system.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName SystemController
 * @Description 描述
 * @Author ShiYu.Cui
 * @Date 2024/4/25 9:12
 */
@RestController
public class SystemController {
    @Autowired
    private SystemService systemService;

    @GetMapping("/findByUser")
    public Result<User> findByUser(@RequestParam String uname){
        User user=systemService.findByUser(uname);
        Result<User> result=Result.success(user);
        return result;
    }
}
